|
|
|
|
|
|
|
Figure 19.7.
The preliminary steps to establish
an ODBC data-source connection. |
|
|
|
|
|
|
|
|
Figure 19.8.
Collecting results of a SELECT query from an ODBC connection. |
|
|
|
|
|
|
|
|
You can perform single record adds, updates, and deletes by using SQL INSERT, UPDATE, and DELETE statements. You accomplish this simply by sending the SQL statement to the data source. You even can perform data table CREATE and DROP statements for most data sources. |
|
|
|
|
|
|
|
|
The last set of ODBC routines you need to call from Visual Basic are the ones that safely close down the ODBC interface before your program exits. The shutdown routine is basically the same as the startup routine in reverse. First, you need to release the statement handle; then, close the ODBC connection and release the connection handle. Finally, you release the environment handle. |
|
|
|
|
|